﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YmtAuth.Domain.Model.Safe
{
   public class IpAreaTokenEntity
    {
       public int UserId { get;private set;}
       public string Country { get; private set; }
       public string Province { get; private set; }
       public string City { get; private set; }
       public DateTime CreateDateTime { get; private set; }
       public DateTime LastAuthTime { get; private set; }
       public string Ip { get; private set; }

       public IpAreaTokenEntity(int userid, string country, string province, string city,string ip)
       {
           this.UserId = userid;
           this.Country = country;
           this.Province = province;
           this.City = city;
           this.CreateDateTime=DateTime.Now;
           this.LastAuthTime=DateTime.Now;
           this.Ip = ip;
       }

       protected IpAreaTokenEntity()
       {

       }
    }
}
